"""
Queue
Programmer: Oscar Chang
Date: 2/24/2014
"""
class Queue():

    """
        Queue Class : (Enter)Rear ------------Front(Exit)
        First in First Out
    """
    
    def __init__(self):
        self.items = []

    def __str__(self):
        return str(self.items)

    def __repr__(self):
        return "Queue" + str(self)

    def enqueue(self, item):
        self.items.append(item)

    def dequeue(self):
        return self.items.pop(0)

    def isEmpty(self):
        return len(self.items) == 0

    def size(self):
        return len(self.items)
